// 订单查询
import request from '@/utils/request'
export function getOrderList(data,state,type) {
    return request({
        url: "/lawServicePlatform/buyer/getOrderList?state="+state+"&type="+type,
        method: 'post',
        data
    })
}

//显示订单详情

export function getOrder(id){
    return request({
        url: "/lawServicePlatform/buyer/getOrder?id="+id,
        method: 'post',
    })
}


//付款  付款后状态是on
export function payForOrder(id){
    return request({
        url: "/lawServicePlatform/buyer/payForOrder?id="+id,
        method: 'post',
    })
}


//取消订单

export function requestCancellationOfOrder(id){
    return request({
        url: "/lawServicePlatform/buyer/requestCancellationOfOrder?id="+id,
        method: 'post',
    })   
}

//添加订单评价
export function addOrderEvaluation(data){
    return request({
       url:"/lawServicePlatform/buyer/addOrderEvaluation",
       method:"post",
       data
    })
}



//确认订单
export function confirmForOrder(id){
    return request({
       url:"/lawServicePlatform/buyer/confirmForOrder?id="+id,
       method:"post",
    })
}

